package com.ztsoft.user.utils;

import com.ztsoft.user.pojo.entity.user.SysMenu;

import java.util.Comparator;

/**
 * 菜单排序
 */
public class MenuComparator implements Comparator<SysMenu> {

    @Override
    public int compare(SysMenu m1, SysMenu m2) {
        return m1.getOrderNum() - m2.getOrderNum();
    }
}
